package sicau.car.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import io.swagger.models.auth.In;
import org.springframework.beans.factory.annotation.Autowired;
import sicau.car.entity.Application;
import sicau.car.entity.User;
import sicau.car.mapper.UserMapper;
import sicau.car.result.R;
import sicau.car.service.ApplicationService;
import sicau.car.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ITcz
 * @since 2020-07-28
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
    @Autowired
    UserMapper userMapper;

    @Autowired
    ApplicationService applicationService;

    /**
     *  每月第一天定时更新用户预约次数
     * */
    @Override
    public void refreshTimesMonthly() {
        userMapper.refreshTimesMonthly();
    }

}
